SG FileSys
ExcludedFolders Property

©1998 by Stinga

Enumerator Object     Constants     Error Codes    
Description

Returns or sets string that contains list of directories that are not enumerated or recursed.

Syntax

object.ExcludedFolders As String

The object is expression that evaluates to the Enumerator object.

Remarks

Directory names must be separated with semicolon (:) character.

Example

Following example lists files from the C:/Projects and it's subdirectories. Files in directories named 'Debug' and 'Release' are not listed.

 Option Explicit
 Dim en, item
 Set en = CreateObject("SGFileSys.Enumerator")

 en.RootPath = "C:/Projects/"
 en.Recurse = True
 en.NameMask = "*.*"
 en.ExcludedFolders = "Debug:Release"

 For Each item In en.Items
    WScript.Echo item.Path
 Next